<?php 
require_once ("DB.php");

/**
 * Update the content of demo feature
 * @param string $content
 * @return 
 */
function service_demo_update($content) {
    $conn = getDBConnection();
    $conn->query("update demo set content=? where id=1", array($content));
    $conn->disconnect();
}

function service_demo_get() {
    $conn = getDBConnection();
    $conn->query("select content from demo;");
    while ($row = &$result->fetchRow(DB_FETCHMODE_ASSOC)) {
            $set = $row;
        }
        $result->free();
        $conn->disconnect();
    return $set;
}